<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$intLID = (int)$_data["LottoID"];
$arrWG = explode(",", $_data["WebGID"]);
$intNS = intval(trim($_data["NumberSpecial"]));
$intNN0 = intval(trim($_data["NumberNormal0"]));
$intNN1 = intval(trim($_data["NumberNormal1"]));
$intNN2 = intval(trim($_data["NumberNormal2"]));
$intNN3 = intval(trim($_data["NumberNormal3"]));

$strCon = "";
foreach($arrWG as $k => $strWGID){
	$arrTmp = explode(":", $strWGID);
	$intWID = $arrTmp[0]*1;
	$intGID = $arrTmp[1]*1;

	$arrW = $arrWeb[$intWID];

	$strName = $arrW[0];
	$strDir = $arrW[1];
	$strUrl = $arrW[2];

	$strCon .= $strName." ( ".$strDir." ) \n====================================================\n";

	$arrC = file("http://".$strUrl."/k_admin/GameCenter/setWebGameCountResult.php?op=CountResult&UserAcc=".urlencode($_SESSION["Admin_Info"] -> Account)."&LottoID=".$intLID."&ID=".$intGID."&NumberNormal0=".$intNN0."&NumberNormal1=".$intNN1."&NumberNormal2=".$intNN2."&NumberNormal3=".$intNN3."&NumberSpecial=".$intNS);

	$strCon .= implode("", $arrC);
}

$strLog = "UserAcc => ".$_SESSION["Admin_Info"] -> Account."\n";
$strLog .= "Param => ".print_r($_data, true)."\n";
$strLog .= "Cont => ".$strCon."\n";
if(!AddData_Log($_SESSION["Admin_Info"] -> ID, "中心統一結算", $strLog))ErrMsgOutputHTML("Error Over 50", "", 1);

WebOutputHTML($strCon, 0);
 ?>
 <script type="text/javascript">
 <!--
parent.ChangeRefreshSec();
 //-->
 </script>